home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games 1996 July
/
Amiga Games 1996 #7.iso
/
archive
/
userbox
/
publicdomain
/
showconfig.lha
/
ShowConfigEnh-Install
/
ShowConfigEnh-Install
< prev
Wrap
Text File
|
1996-04-14
|
3KB
|
147 lines
; $VER: ShowConfigEnh 1.0 (9.4.96)
;
; Install-Script & ShowConfigEnh Copyright ©1996 Thomas Kessler
; All rights reserved.
; Feel free to contact me via email at kessler@fim.uni-erlangen.de
;
; boards.library 1.0 ©1996 Torsten Bach (bach@deadline.snafu.de)
; expname.library 1.6 ©1996 Richard Körber (rkoerber@tfh.dssd.sub.org)
; All rights reserved.
(set #already (cat
"\nThis version of ShowConfig is\n"
"already enhanced (= patched).\n"
"\nThank you for using ShowConfigEnh."))
(set #notsup (cat
"\nThis version of ShowConfig is\n"
"not (yet) supported.\n\n"
"Supported versions are:\n40.2 (OS3.1), 39.1 (OS3.0)\n"
"\nThank you for using ShowConfigEnh."))
(set old-level @user-level)
(user 2)
(complete 0)
(message "\nShowConfigEnh 1.0 Installation\n\n"
"This patch enhances the workbench-tool ShowConfig.\n"
"The patched ShowConfig will be able to use system\n"
"shared libraries to decode the manufacturer- and\n"
"product ID of expansion boards.\n\n"
"ShowConfig ©1990-1996 Escom AG\n"
"ShowConfigEnh 1.0 ©1996 Thomas Kessler\n"
"boards.library 1.0 ©1996 Torsten Bach\n"
"expname.library 1.6 ©1996 Richard Körber\n"
"All rights reserved.")
(complete 1)
(set #file
(askfile
(prompt "Please locate your workbench-tool ShowConfig.")
(help @askfile-help)
(default "SYS:Tools/ShowConfig")))
(complete 5)
(set #checksum (getsum #file))
(complete 10)
(set #version 0)
(if (= #checksum 1934686971)
(
; orig 40.2 (24.08.93)
(set #version 1)))
(if (= #checksum 1117391017)
(
; patched 40.2b (09.04.96)
(abort #already)))
(if (= #checksum 2015712407)
(
; patched 40.2e (09.04.96)
(abort #already)))
(if (= #checksum 116849060)
(
; orig 39.1 (24.08.93)
(set #version 2)))
(if (= #checksum -1242884495)
(
; patched 39.1b (09.04.96)
(abort #already)))
(if (= #checksum -359176608)
(
; patched 39.1e (09.04.96)
(abort #already)))
(complete 30)
(if (= #version 0)
(abort #notsup))
(set #library
(askchoice
(prompt "\nWhich library should ShowConfig use?\n\n"
"These libraries are available on aminet\n"
"and NOT included in this package!\n\n")
(help @askchoice-help)
(choices "boards.library" "expname.library")))
(complete 50)
(if (= #version 1)
(
(set #command (cat "ShowConfigEnh-Data/patch402 "#file" "#file"Enh"))
(if (= #library 1)
(set #command (cat #command " EXP")))
))
(if (= #version 2)
(
(set #command (cat "ShowConfigEnh-Data/patch391 "#file" "#file"Enh"))
(if (= #library 1)
(set #command (cat #command " EXP")))
))
(run
(prompt "Patch...")
(help "n/a")
#command)
(complete 80)
(copyfiles
(prompt "Copy...")
(help "n/a")
(source (cat #file".info"))
(dest (pathonly #file))
(newname (cat #file"Enh.info")))
(complete 90)
(tooltype
(prompt "Convert...")
(help "n/a")
(dest (cat #file"Enh"))
(noposition)
(safe))
(set @default-dest (pathonly #file))
(complete 100)
(user old-level)
(exit (cat "Note: You have to install\n\n"
(if (= #library 0) "boards.library")
(if (= #library 1) "expname.library")
"\n\nby yourself. The library is not\n"
"included in this package!\n"
"\nThank you for using ShowConfigEnh.")
)
(welcome "")